package com.nbot.serial;

public class UartCommand {
    /**
     * 播报类型（00-查询反馈；11-报警；22-重点工作督办；33-风险管理；44-安全隐患；55-摄像头状态；）
     */
    private Byte boardcastType;
    /**
     * 播报描述（报警事件reportMsg、查询描述opckey、重点督办事件event）
     */
    private String boardcastDesc;
    /**
     * 播报值（报警事件valueNow、查询返回result、重点督办事件-无）
     */
    private String boardcastValue;
    /**
     * 报警的级别或类型（三厂 1-油井；2-生产；3-水井；  四厂 1-紧急；2-重要；3-一般）
     */
    private String warnLevel;
    /**
     * 重点督办的主键序号
     */
    private Long iecKey;
    /**
     * 摄像头ip地址
     */
    private String camareIp;
    /**
     * 是否能ping通
     */
    private String pinged;

    public UartCommand() {
    }

    public Byte getBoardcastType() {
        return boardcastType;
    }

    public void setBoardcastType(Byte boardcastType) {
        this.boardcastType = boardcastType;
    }

    public String getBoardcastDesc() {
        return boardcastDesc;
    }

    public void setBoardcastDesc(String boardcastDesc) {
        this.boardcastDesc = boardcastDesc;
    }

    public String getBoardcastValue(String s) {
        return boardcastValue;
    }

    public void setBoardcastValue(String boardcastValue) {
        this.boardcastValue = boardcastValue;
    }

    public String getWarnLevel() {
        return warnLevel;
    }

    public void setWarnLevel(String warnLevel) {
        this.warnLevel = warnLevel;
    }

    public Long getIecKey() {
        return iecKey;
    }

    public void setIecKey(Long iecKey) {
        this.iecKey = iecKey;
    }

    public String getCamareIp() {
        return camareIp;
    }

    public void setCamareIp(String camareIp) {
        this.camareIp = camareIp;
    }

    public String getPinged() {
        return pinged;
    }

    public void setPinged(String pinged) {
        this.pinged = pinged;
    }

    @Override
    public String toString() {
        return  boardcastDesc + '*' +
                boardcastValue + '*' +
                warnLevel + '*' +
                iecKey + '*' +
                camareIp + '*' +
                pinged;
    }
}
